<template>
	<view>
		<view style="display: flex;align-items: center;justify-content: center;height: 300rpx;flex-direction: column;">
			<image  style="width:58px;height: 58px;" src="https://d-duomi.bigchun.com/images/shangbang/success2.png"></image>
			<view style="
height: 17px;
font-size: 12px;
font-family: PingFang SC-Medium, PingFang SC;
font-weight: 500;
color: #777777;
line-height: 40px;">恭喜您已核销成功</view>
		</view>
		<view style="margin: 10px;">
			<view style="display: flex;line-height: 90rpx;border-bottom: 1px solid  #F3F3F3;">
				<view style="flex: 1;">账单金额</view>
				<view>￥{{orderInfo.amount}}</view>
			</view>
			<view style="display: flex;line-height: 90rpx;border-bottom: 1px solid  #F3F3F3;">
				<view style="flex: 1;">米包</view>
				<view>-￥{{orderInfo.hongbao_money}}</view>
			</view>
			<view style="display: flex;line-height: 90rpx;border-bottom: 1px solid  #F3F3F3;">
				<view style="flex: 1;">代金券</view>
				<view>-￥{{orderInfo.daijin_money}}</view>
			</view>
			<view style="display: flex;line-height: 90rpx;border-bottom: 1px solid  #F3F3F3;">
				<view style="flex: 1;">实际付款</view>
				<view>￥{{orderInfo.cash_money}}</view>
			</view>
			<view style="display: flex;line-height: 90rpx;border-bottom: 1px solid  #F3F3F3;">
				<view style="flex: 1;">赠送优惠券</view>
				<view>￥{{orderInfo.zengsong_money}}</view>
			</view>
		</view>
		<view  style="position: fixed;bottom: 20px;width: 100%;display: flex;justify-content: center;flex-direction: column;">

			<view style="text-align: center;line-height: 70px;color:#999999;font-size: 26rpx;">注：请把此页展示给商家</view>
			<view class="submit" @click="toEvaluate">去评价</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				orderInfo:null,
			}
		},
		onLoad(options) {
			this.orderInfo=uni.getStorageSync("paySuccess")
		},
		methods: {
				toEvaluate(){
					uni.redirectTo({
						url: '/pages/index/category/evaluate?orderId='+this.orderInfo.order_id+"&shop_name="+this.orderInfo.shop.shop_name+"&shop_image="+encodeURIComponent(this.orderInfo.shop.shop_image)
					})
				}
		}
	}
</script>

<style>
	page{
		background: #FFFFFF;
	}
.submit{
		margin:auto  20px;
		font-size: 15px;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
		line-height: 16px;
		background: #fd5e5d;
		border-radius: 50rpx;
		text-align: center;
		line-height: 55px;
	}
</style>
